package ModelLayer;


/**
 * Write a description of class Person here.
 * 
 * @version (31 okt 2011)
 */
public class Person
{
    private long id; 
    private String name;
    private String address;
    private String postalCode;
    private String city;
    private String tlf;
    
    /**
      * Constructor for the Person
      * @param id The persons id
      * @param name The name of the person
      * @param adress The persons adresse
      * @param The postal code of the adresse
      * @param city The name of the city
      * @param tlf The persons thelephone number
     */
    public Person(long id, String name, String address, String postalCode, String city, String tlf)
    {
        this.id = id;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.tlf = tlf;
    }
    
    /**
      * Sets all the data to the object 
      * @param id The persons id
      * @param name The name of the person
      * @param adress The persons adresse
      * @param The postal code of the adresse
      * @param city The name of the city
      * @param tlf The persons thelephone number
     */
    public void setAllInformation(long id, String name, String address, String postalCode, String city, String tlf)
    {
        this.id = id;
        this.name = name;
        this.address = address;
        this.postalCode = postalCode;
        this.city = city;
        this.tlf = tlf;
    }
    
    public long getId()
    {
        return id;
    }
    
    public String getName()
    {
        return name;
    }
        
    public String getAddress()
    {
        return address;
    }
        
    public String getPostalCode()
    {
        return postalCode;
    }
        
    public String getCity()
    {
        return city;
    }
        
    public String getTlf()
    {
        return tlf;
    }
    
    /**
     *  Prints the details of a person
     */
    public void print()
    {
        System.out.println("ID:          " + id);
        System.out.println("Name:        " + name);
        System.out.println("Address:     " + address);
        System.out.println("Postal Code: " + postalCode);
        System.out.println("City:        " + city);
        System.out.println("Phonenumber: " + tlf);
    }
}
